<!-- $Id: listVote.html 94 2011-04-08 10:13:01Z nicholasinlove1986@gmail.com $ -->
<include file="Public:pageheader"/>
<link href="__PUBLIC__/Js/thickbox/thickbox.css" rel="stylesheet" type="text/css" />
<load href="__PUBLIC__/Js/thickbox/thickbox-compressed.js" />
<load href="__PUBLIC__/Js/jquery.tableSort.js" />
<script type="text/javascript">
function sortBy(order,sort){
	location.href = "?order="+order+"&sort="+sort;
}
</script>
<div class="form-div">
  <form action="__URL__/listVote" name="searchForm">
    <img src="__PUBLIC__/Images/icon_search.gif" width="26" height="22" border="0" alt="search" />
	<select name="map" >
	<option value="">请选择...</option>
	<option value="visible">隐藏</option>
	<option value="status">未审核</option>
    </select>
    输入评论内容 <input type="text" name="keyword" /> <input type="submit" class="Button" value=" 搜索 " />
  </form>
</div>

<form method="POST" action="__URL__/dropVote" name="listForm" onsubmit="return confirmSubmit_(this)">
<!-- start vote list -->
  <div class="list-div" id="listDiv">
    <table cellpadding="3" cellspacing="1" id="vote_table">
      <tbody>
        <tr>
          <th><input type="checkbox" id="chkOpenAll" onclick="openAll(this)" />
            <a href="javascript:void(0)" onclick="javascript:sortBy('vote_id','<if condition="$sort eq asc">desc<else/>asc</if>');" title="点击对列表排序">编号</a>
            <if condition="$sort eq asc"><img src="__PUBLIC__/Images/sort_asc.gif"/><else/><img src="__PUBLIC__/Images/sort_desc.gif"/></if></th>
        <th>投票主题</th>
		<th>创建人</th>
		<th>创建时间</th>
		<th>开始日期</th>
		<th>截止日期</th>
		<th><a href="javascript:$('#vote_table').sortTable({onCol: 7, keepRelationships: true, sortType: 'numeric'})" title="{$Think.lang.sort}">参与人数</a></th>
		<th>显示</th>
		<th>审核</th>
		<th>操作</th>
        </tr>
        <volist name="list" id="vo">
          <tr>
            <td style="background-color: rgb(255, 255, 255);" width="6%" align="center"><input type="checkbox" id="key" name="key[]" onclick="openAll()" value="{$vo.vote_id}" />{$vo.vote_id}</td>
            <td style="background-color: rgb(255, 255, 255);" align="left" width="25%"><span>{$vo.vote_name}</span></td>
			<td style="background-color: rgb(255, 255, 255);" align="center" width="9%"><span>{$vo.user_name}</span></td>
			<td style="background-color: rgb(255, 255, 255);" align="center" width="13%"><span>{$vo.vote_addtime|date='Y-m-d H:i:s',###}</span></td>
			<td style="background-color: rgb(255, 255, 255);" align="center" width="10%"><span>{$vo.vote_starttime|date='Y-m-d',###}</span></td>
			<td style="background-color: rgb(255, 255, 255);" align="center" width="10%"><span>{$vo.vote_endtime|date='Y-m-d',###}</span></td>
			<td style="background-color: rgb(255, 255, 255);" align="center" width="6%">{$vo.vote_count}</td>
			<td style="background-color: rgb(255, 255, 255);" align="center" width="5%"><span><eq name='vo.vote_visible' value='1'><img src="__PUBLIC__/Images/yes.gif" border="0" height="14" width="14" alt="Yes"><else /><img src="__PUBLIC__/Images/no.gif" border="0" height="14" width="14" alt="No"></eq></span></td>
			<td style="background-color: rgb(255, 255, 255);" align="center" width="5%"><span><eq name='vo.vote_status' value='1'><img src="__PUBLIC__/Images/yes.gif" border="0" height="14" width="14" alt="Yes"><else/><img src="__PUBLIC__/Images/no.gif" border="0" height="14" width="14" alt="No"></eq></span></td>
			<td style="background-color: rgb(255, 255, 255);" align="center">
<a href="__URL__/viewVote/id/{$vo.vote_id}" class="thickbox" title="投票结果"><img src="__PUBLIC__/Images/icon_view.gif" border="0" height="16" width="16"></a>&nbsp;&nbsp;
<a href="__URL__/listOption/id/{$vo.vote_id}" title="投票选项"><img src="__PUBLIC__/Images/icon_add.gif" border="0" height="16" width="16"></a>&nbsp;&nbsp;
<a href="__URL__/editVote/id/{$vo.vote_id}" title="编辑"><img src="__PUBLIC__/Images/icon_edit.gif" border="0" width="16" height="16"></a>&nbsp;&nbsp;
<a href="__URL__/initializeVote/id/{$vo.vote_id}" onclick="return confirm('投票数据初始化!');" title="清空数据"><img src="__PUBLIC__/Images/icon_trash.gif" border="0" height="16" width="16"></a></td>    
          </tr>
        </volist>
        <tr>
          <td>
		<input value="清除" id="btnSubmit" name="btnSubmit" class="button" disabled="true" type="submit"  onclick="return confirm('- 确定要执行操作?');" ></td>
          <td style="background-color: rgb(255, 255, 255);" colspan="9" align="right" nowrap="true"><div class="{$pagestyle}" id="turn-page">{$page}</div></td>
        </tr>
      </tbody>
    </table>
  </div>
<!-- end vote list -->
</form>
<include file="Public:pagefooter"/> 